﻿@* Generator: Template *@
@functions { public dynamic Model { get; set; } }@{
    var dotModule = Model.Module == null ? "" : ("." + Model.Module);
    var moduleDot = Model.Module == null ? "" : (Model.Module + ".");
}
namespace @(Model.RootNamespace)@(dotModule).Forms
{
    using Serenity;
    using Serenity.ComponentModel;
    using Serenity.Data;
    using System;
    using System.ComponentModel;
    using System.Collections.Generic;
    using System.IO;

    [FormScript("@(moduleDot)@(Model.ClassName)")]
    [BasedOnRow(typeof(Entities.@(Model.RowClassName)))]
    public class @(Model.ClassName)Form
    {@foreach (EntityField x in Model.Fields)
    {
        if (x.Ident != Model.IdField)
        {<text>
        public @x.DataType @x.Ident { get; set; }</text>}
    }

    }
}